home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / SpiffyToolbar 1.1 / Read Me < prev    next >
Text File  |  1999-09-02  |  2KB  |  53 lines

  1. SpiffyToolbar 1.1
  2. ©1999 Jim Rodovich, Channel 8 Software
  3.  
  4. Using SpiffyToolbar
  5.  
  6. SpiffyToolbar is a simple way to add toolbars to any application made with REALbasic.  To use SpiffyToolbar in your application, follow these steps:
  7.  
  8. 1.  Open your project file with REALbasic.
  9. 2.  Drag the SpiffyToolbar and STbtn classes from the SpiffyToolbar folder into the window for your project.  Two new items should be added to the list.
  10. 3.  Create a canvas, select it, and select SpiffyToolbar from the menu next to the Super property in the properties window.
  11. 4.  Set the PictureUp, PictureDown, PictureDisabled, and PictureHover properties for the canvas.
  12. 5.  Add buttons using the NewButton method.
  13.  
  14. SpiffyToolbar Methods, Events, and Properties
  15.  
  16. Methods:
  17.  
  18. NewButton(Left as Integer, Top as Integer, Width as Integer, Height as Integer, Enabled as Boolean) as STbtn
  19. Creates a new button using the coordinates passed, relative to the left and top of the canvas.
  20.  
  21. Events:
  22.  
  23. ButtonDown(ButtonIndex as Integer)
  24. ButtonUp(ButtonIndex as Integer)
  25. ButtonEnter(ButtonIndex as Integer)
  26. ButtonExit(ButtonIndex as Integer)
  27. Fired when the mouse is clicked on a button, released, enters the regions of a button, or exits them, respectively.
  28.  
  29. Properties:
  30.  
  31. Button() as STbtn
  32. The 1-based array of buttons for the toolbar.
  33.  
  34. PictureUp as Picture
  35. PictureDown as Picture
  36. PictureDisabled as Picture
  37. PictureHover as Picture
  38. The four pictures to be drawn.  PictureUp is drawn in the back, and the button regions for PictureDown, PictureDisabled, and PictureHover are drawn as needed.
  39.  
  40. SpiffyToolbar Version History
  41.  
  42. 1.1
  43.    ButtonUp no longer fires when the mouse is released outside of the button
  44.    Minor asthetic improvements and bug fixes
  45.  
  46. 1.0
  47.    Initial release
  48.  
  49. SpiffyToolbar Legal Info
  50.  
  51. SpiffyToolbar is free to use and distribute.  You may use it in any project that you make.  If you distribute a program for profit which uses SpiffyToolbar, let me know and we can work out a deal.  If you distribute a program at all which uses SpiffyToolbar, put my name in the about box and give me some credit.
  52.  
  53. Thanks for using SpiffyToolbar!